Appending or replacing html/text output

Appending or replacing html/text output

am 11.01.2010 18:19:47 von Sam Minning

--_69767744-5996-4d57-a83e-192767f0d722_
Content-Type: text/plain; charset="windows-1251"
Content-Transfer-Encoding: quoted-printable


hello apache community=2C



I am using Apache 2.2=2C combined with PHP via fastcgi
Additionally there is mod_deflate in use=2C as well as gzip-compression via=
PHP.

I would like to append a string and/or replace the body-tag of any served
document=2C no matter if it is plain .html or parsed .php and no matter whe=
ther
GZIP is enabled at PHP. mod_deflate is always used by default.

The idea is to replace the closing body-tag of any document and if there is=
none
found=2C to append one=2C with some additional text.


I have tried several modules=2C e.g. mod_substitute or similar=2C but none =
was
able to fit my needs=2C mostly not supported compression from mod_deflate o=
r
gzip caused problems=2C so I was unable to implement this at all.

Maybe there are some modules=2C even unofficial ones=2C out there I do not =
know
of=2C which could solve this issue. Any ideas about such modules or any sug=
gestions
on how to accomplish this?


thanks very much in advance=2C
Sam

=20
____________________________________________________________ _____
Windows Live: Make it easier for your friends to see what you=92re up to on=
Facebook.
http://www.microsoft.com/middleeast/windows/windowslive/see- it-in-action/so=
cial-network-basics.aspx?ocid=3DPID23461::T:WLMTAGL:ON:WL:en -xm:SI_SB_2:092=
009=

--_69767744-5996-4d57-a83e-192767f0d722_
Content-Type: text/html; charset="windows-1251"
Content-Transfer-Encoding: quoted-printable






hello apache community=2C



I am using Apache 2.2=2C combined =
with PHP via fastcgi
Additionally there is mod_deflate in use=2C as well=
as gzip-compression via PHP.

I would like to append a string and/or=
replace the body-tag of any served
document=2C no matter if it is plain=
.html or parsed .php and no matter whether
GZIP is enabled at PHP. mod_=
deflate is always used by default.

The idea is to replace the closin=
g body-tag of any document and if there is none
found=2C to append one=
=2C with some additional text.


I have tried several modules=2C e=
..g. mod_substitute or similar=2C but none was
able to fit my needs=2C mo=
stly not supported compression from mod_deflate or
gzip caused problems=
=2C so I was unable to implement this at all.

Maybe there are some m=
odules=2C even unofficial ones=2C out there I do not know
of=2C which co=
uld solve this issue. Any ideas about such modules or any suggestions
on=
how to accomplish this?


thanks very much in advance=2C
Sam r>


Windows Live: Make it easier for your friends=
to see /see-it-in-action/social-network-basics.aspx?ocid=3DPID23461 ::T:WLMTAGL:ON:=
WL:en-xm:SI_SB_2:092009' target=3D'_new'>what you=92re up to on Facebook. a>
=

--_69767744-5996-4d57-a83e-192767f0d722_--

Re: Appending or replacing html/text output

am 13.01.2010 05:06:49 von Devraj Mukherjee

If you are using Apache 2.x then mod_substitute is your friend.

2010/1/12 Sam Minning :
> hello apache community,
>
>
>
> I am using Apache 2.2, combined with PHP via fastcgi
> Additionally there is mod_deflate in use, as well as gzip-compression via
> PHP.
>
> I would like to append a string and/or replace the body-tag of any served
> document, no matter if it is plain .html or parsed .php and no matter
> whether
> GZIP is enabled at PHP. mod_deflate is always used by default.
>
> The idea is to replace the closing body-tag of any document and if there =
is
> none
> found, to append one, with some additional text.
>
>
> I have tried several modules, e.g. mod_substitute or similar, but none wa=
s
> able to fit my needs, mostly not supported compression from mod_deflate o=
r
> gzip caused problems, so I was unable to implement this at all.
>
> Maybe there are some modules, even unofficial ones, out there I do not kn=
ow
> of, which could solve this issue. Any ideas about such modules or any
> suggestions
> on how to accomplish this?
>
>
> thanks very much in advance,
> Sam
>
>
> ________________________________
> Windows Live: Make it easier for your friends to see what you=92re up to =
on
> Facebook.



--=20
Follow me on Twitter, http://twitter.com/mdevraj

"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Appending or replacing html/text output

am 13.01.2010 06:47:48 von Nilesh Govindrajan

On 01/13/2010 09:36 AM, Devraj Mukherjee wrote:
> If you are using Apache 2.x then mod_substitute is your friend.
>
> 2010/1/12 Sam Minning:
>> hello apache community,
>>
>>
>>
>> I am using Apache 2.2, combined with PHP via fastcgi
>> Additionally there is mod_deflate in use, as well as gzip-compression via
>> PHP.
>>
>> I would like to append a string and/or replace the body-tag of any served
>> document, no matter if it is plain .html or parsed .php and no matter
>> whether
>> GZIP is enabled at PHP. mod_deflate is always used by default.
>>
>> The idea is to replace the closing body-tag of any document and if there is
>> none
>> found, to append one, with some additional text.
>>
>>
>> I have tried several modules, e.g. mod_substitute or similar, but none was
>> able to fit my needs, mostly not supported compression from mod_deflate or
>> gzip caused problems, so I was unable to implement this at all.
>>
>> Maybe there are some modules, even unofficial ones, out there I do not know
>> of, which could solve this issue. Any ideas about such modules or any
>> suggestions
>> on how to accomplish this?
>>
>>
>> thanks very much in advance,
>> Sam
>>
>>
>> ________________________________
>> Windows Live: Make it easier for your friends to see what you’re up to on
>> Facebook.
>
>
>

He has clearly said that mod_substitute didn't fit his needs, so why are
you suggesting that to him ?

--
Nilesh Govindarajan
Site & Server Adminstrator
www.itech7.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Apache vs LiteSpeed

am 13.01.2010 07:31:24 von Jarrod Slick

Apache Users,

As some of you may or may not know a fairly prominent commercial
webserver, LiteSpeed, claims to outperform even a well configured
Apache 2.2.x installation by orders of magnitude. They have some
internal benchmarks that appear to back this up, but, being a natural
skeptic, I wanted to test it out for myself. So I've agreed to pit
Apache and LiteSpeed (as well as a few other webservers) against one
another in benchmarking tests on a 2x Xeon 5520 machine. I, and
hopefully others, will be configuring Apache. LiteSpeed will be
configuring their product.

I'm a proponent of open source software and a long time admin, but I'm
by no means a foremost expert in terms of Apache optimization. What
I'm looking for is some advice on how to configure Apache so that it
gives LiteSpeed a run for its money (and hopefully wins). So if you
think you can help, either by giving written advice or actually
helping to tune the apache install, please either reply to this
message with your ideas, or reply on WHT where this challenge
originated:

http://www.webhostingtalk.com/showthread.php?t=918355.

I hope I get some type of response on this, because I'm afraid that
I'm not going to represent Apache very well if I end up being the only
one to configure it.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Apache vs LiteSpeed

am 13.01.2010 07:47:46 von Scott Gifford

--001517588cea2a32bf047d062780
Content-Type: text/plain; charset=ISO-8859-1

On Wed, Jan 13, 2010 at 1:31 AM, Jarrod Slick wrote:

> Apache Users,
>
> As some of you may or may not know a fairly prominent commercial webserver,
> LiteSpeed, claims to outperform even a well configured Apache 2.2.x
> installation by orders of magnitude. They have some internal benchmarks
> that appear to back this up, but, being a natural skeptic, I wanted to test
> it out for myself. So I've agreed to pit Apache and LiteSpeed (as well as a
> few other webservers) against one another in benchmarking tests on a 2x Xeon
> 5520 machine. I, and hopefully others, will be configuring Apache.
> LiteSpeed will be configuring their product.
>

What is the workload you are benchmarking? Static pages, PHP/mod_perl code,
CGI, etc.? Is the client a benchmark tool or a browser, and where on the
network is it relative to the server? How are you measuring performance
(page load times, requests/second, etc.)?

-----Scott.

--001517588cea2a32bf047d062780
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On Wed, Jan 13, 2010 at 1:31 AM, Jarrod Sli=
ck <
jarrod=
@e-sensibility.com
> wrote:
e" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"=
>

Apache Users,



As some of you may or may not know a fairly prominent commercial webserver,=
LiteSpeed, claims to outperform even a well configured Apache 2.2.x instal=
lation by orders of magnitude. =A0They have some internal benchmarks that a=
ppear to back this up, but, being a natural skeptic, I wanted to test it ou=
t for myself. =A0So I've agreed to pit Apache and LiteSpeed (as well as=
a few other webservers) against one another in benchmarking tests on a 2x =
Xeon 5520 machine. =A0I, and hopefully others, will be configuring Apache. =
=A0LiteSpeed will be configuring their product.



What is the workload you are benchmarking?=
=A0Static pages, PHP/mod_perl code, CGI, etc.? =A0Is the client a benchmar=
k tool or a browser, and where on the network is it relative to the server?=
=A0How are you measuring performance (page load times, requests/second, et=
c.)?



-----Scott.



--001517588cea2a32bf047d062780--

Re: Apache vs LiteSpeed

am 13.01.2010 08:08:52 von Jarrod Slick

--Apple-Mail-11--555992594
Content-Type: text/plain;
charset=US-ASCII;
format=flowed;
delsp=yes
Content-Transfer-Encoding: 7bit


On Jan 13, 2010, at 12:47 AM, Scott Gifford wrote:

> On Wed, Jan 13, 2010 at 1:31 AM, Jarrod Slick > > wrote:
> Apache Users,
>
> As some of you may or may not know a fairly prominent commercial
> webserver, LiteSpeed, claims to outperform even a well configured
> Apache 2.2.x installation by orders of magnitude. They have some
> internal benchmarks that appear to back this up, but, being a
> natural skeptic, I wanted to test it out for myself. So I've agreed
> to pit Apache and LiteSpeed (as well as a few other webservers)
> against one another in benchmarking tests on a 2x Xeon 5520
> machine. I, and hopefully others, will be configuring Apache.
> LiteSpeed will be configuring their product.
>
> What is the workload you are benchmarking? Static pages, PHP/
> mod_perl code, CGI, etc.? Is the client a benchmark tool or a
> browser, and where on the network is it relative to the server? How
> are you measuring performance (page load times, requests/second,
> etc.)?
>
> -----Scott.
>

Scott,

I'm open to suggestions on all fronts, but as it stands we were going
to do the following with the ab tool:

-small static pages test
-large static pages test
-hello world php test

And we were going to also benchmark a wordpress/joomla site in a more
"real-world" load simulation test using the tool "siege".

All tests will be performed on localhost.

There are some more details present in the WHT thread I originally
linked, also.

Thanks,
Jarrod


--Apple-Mail-11--555992594
Content-Type: text/html;
charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

-webkit-line-break: after-white-space; ">

On Jan 13, 2010, =
at 12:47 AM, Scott Gifford wrote:

class=3D"Apple-interchange-newline">
class=3D"gmail_quote">On Wed, Jan 13, 2010 at 1:31 AM, Jarrod Slick =
< href=3D"mailto:jarrod@e-sensibility.com">jarrod@e-sensibilit y.com><=
/span> wrote:
..8ex;border-left:1px #ccc solid;padding-left:1ex;"> Apache Users,
=

As some of you may or may not know a fairly prominent commercial =
webserver, LiteSpeed, claims to outperform even a well configured Apache =
2.2.x installation by orders of magnitude.  They have some internal =
benchmarks that appear to back this up, but, being a natural skeptic, I =
wanted to test it out for myself.  So I've agreed to pit Apache and =
LiteSpeed (as well as a few other webservers) against one another in =
benchmarking tests on a 2x Xeon 5520 machine.  I, and hopefully =
others, will be configuring Apache.  LiteSpeed will be configuring =
their product.

What is the workload =
you are benchmarking?  Static pages, PHP/mod_perl code, CGI, etc.? =
 Is the client a benchmark tool or a browser, and where on the =
network is it relative to the server?  How are you measuring =
performance (page load times, requests/second, etc.)?
=

-----Scott.

te>

Scott, 

I'm open to =
suggestions on all fronts, but as it stands we were going to do the =
following with the ab tool:

-small static pages =
test
-large static pages test
-hello world php =
test

And we were going to also benchmark a =
wordpress/joomla site in a more "real-world" load simulation test using =
the tool "siege".

All tests will be performed =
on localhost.

There are some more details =
present in the WHT thread I originally linked, =
also.

Thanks,
Jarrod

v>=

--Apple-Mail-11--555992594--

Re: Apache vs LiteSpeed

am 13.01.2010 12:15:04 von Jorge Schrauwen

--0015175cdcfcdf2e06047d09e188
Content-Type: text/plain; charset=ISO-8859-1

Sounds interesting,

You may also want to test things like requesting protected resources (basic,
digest)...
Maybe some other things like WebDAV (of all servers support it),...


~Jorge


On Wed, Jan 13, 2010 at 8:08 AM, Jarrod Slick wrote:

>
> On Jan 13, 2010, at 12:47 AM, Scott Gifford wrote:
>
> On Wed, Jan 13, 2010 at 1:31 AM, Jarrod Slick wrote:
>
>> Apache Users,
>>
>> As some of you may or may not know a fairly prominent commercial
>> webserver, LiteSpeed, claims to outperform even a well configured Apache
>> 2.2.x installation by orders of magnitude. They have some internal
>> benchmarks that appear to back this up, but, being a natural skeptic, I
>> wanted to test it out for myself. So I've agreed to pit Apache and
>> LiteSpeed (as well as a few other webservers) against one another in
>> benchmarking tests on a 2x Xeon 5520 machine. I, and hopefully others, will
>> be configuring Apache. LiteSpeed will be configuring their product.
>>
>
> What is the workload you are benchmarking? Static pages, PHP/mod_perl
> code, CGI, etc.? Is the client a benchmark tool or a browser, and where on
> the network is it relative to the server? How are you measuring performance
> (page load times, requests/second, etc.)?
>
> -----Scott.
>
>
> Scott,
>
> I'm open to suggestions on all fronts, but as it stands we were going to do
> the following with the ab tool:
>
> -small static pages test
> -large static pages test
> -hello world php test
>
> And we were going to also benchmark a wordpress/joomla site in a more
> "real-world" load simulation test using the tool "siege".
>
> All tests will be performed on localhost.
>
> There are some more details present in the WHT thread I originally linked,
> also.
>
> Thanks,
> Jarrod
>
>

--0015175cdcfcdf2e06047d09e188
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Sounds interesting,

You may also want to test things like requesting=
protected resources (basic, digest)...
Maybe some other things like Web=
DAV (of all servers support it),...


~Jorge



On Wed, Jan 13, 2010 at 8:08 AM, Jarrod =
Slick <jar=
rod@e-sensibility.com
>
wrote:
uote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0=
pt 0.8ex; padding-left: 1ex;">
>
On Jan 13, 2010, at 12:47 AM, Scott Gifford wrote:

ckquote type=3D"cite">
On Wed, Jan 13, 2010 =
at 1:31 AM, Jarrod Slick < ensibility.com" target=3D"_blank">jarrod@e-sensibility.com> w=
rote:

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Apache Users, >
As some of you may or may not know a fairly prominent commercial web=
server, LiteSpeed, claims to outperform even a well configured Apache 2.2.x=
installation by orders of magnitude. =A0They have some internal benchmarks=
that appear to back this up, but, being a natural skeptic, I wanted to tes=
t it out for myself. =A0So I've agreed to pit Apache and LiteSpeed (as =
well as a few other webservers) against one another in benchmarking tests o=
n a 2x Xeon 5520 machine. =A0I, and hopefully others, will be configuring A=
pache. =A0LiteSpeed will be configuring their product.


What is the workload you are benchmarking=
? =A0Static pages, PHP/mod_perl code, CGI, etc.? =A0Is the client a benchma=
rk tool or a browser, and where on the network is it relative to the server=
? =A0How are you measuring performance (page load times, requests/second, e=
tc.)?


-----Scott.

te>

Scott,=A0

I'm op=
en to suggestions on all fronts, but as it stands we were going to do the f=
ollowing with the ab tool:


-small static pages test
-large static pages =
test
-hello world php test

And we were g=
oing to also benchmark a wordpress/joomla site in a more "real-world&q=
uot; load simulation test using the tool "siege".


All tests will be performed on localhost.
>
There are some more details present in the WHT thread I origina=
lly linked, also.

Thanks,
Jarrod





--0015175cdcfcdf2e06047d09e188--

Re: Appending or replacing html/text output

am 13.01.2010 17:47:13 von Eric Covener

2010/1/11 Sam Minning :

> I have tried several modules, e.g. mod_substitute or similar, but none was
> able to fit my needs, mostly not supported compression from mod_deflate or
> gzip caused problems, so I was unable to implement this at all.

You should be able to order the filters such that either
mod_substitute comes first, or if your stuff is pre-compressed outside
of the Apache filters, you can eg. SetOutputFilter
INFLATE;SUBSTITUTE;DEFLATE

--
Eric Covener
covener@gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

RE: Appending or replacing html/text output

am 14.01.2010 00:56:31 von Sam Minning

--_b8f85cb0-fb41-4d4b-a59f-5fccea1c1d8d_
Content-Type: text/plain; charset="windows-1251"
Content-Transfer-Encoding: quoted-printable


hello community=2C
hello Eric Covener=2C


I have just the same setup=2C regardless of this some sites
still do not have the replaced content. I assume this is
due to compression which is done via PHP - I have seen
this on pretty large sites (Joomla CMS and some forums)=2C
it may be hard to determine what exactly causes this=2C but
still - this leaves one problem at hand: mod_substitute just
replaces content=2C it is unable to append it when there is=20
no closing body-tag detected.

I played around with many regex=2C even with help from guys
in #regex irc channels=2C obvioulsy we either failed (mostly
causing apache to eat up 99% of RAM=2C there seems to be
a bug or some kind of endless loop?) or it is simply not=20
supported in that fashion we tried.


kind regards=2C
Sam

=20
____________________________________________________________ _____
Windows Live: Make it easier for your friends to see what you=92re up to on=
Facebook.
http://www.microsoft.com/middleeast/windows/windowslive/see- it-in-action/so=
cial-network-basics.aspx?ocid=3DPID23461::T:WLMTAGL:ON:WL:en -xm:SI_SB_2:092=
009=

--_b8f85cb0-fb41-4d4b-a59f-5fccea1c1d8d_
Content-Type: text/html; charset="windows-1251"
Content-Transfer-Encoding: quoted-printable






hello community=2C
hello Eric Covener=2C


I have just the same=
setup=2C regardless of this some sites
still do not have the replaced c=
ontent. I assume this is
due to compression which is done via PHP - I ha=
ve seen
this on pretty large sites (Joomla CMS and some forums)=2C
it=
may be hard to determine what exactly causes this=2C but
still - this l=
eaves one problem at hand: mod_substitute just
replaces content=2C it is=
unable to append it when there is
no closing body-tag detected.
>I played around with many regex=2C even with help from guys
in #regex i=
rc channels=2C obvioulsy we either failed (mostly
causing apache to eat =
up 99% of RAM=2C there seems to be
a bug or some kind of endless loop?) =
or it is simply not
supported in that fashion we tried.


kind=
regards=2C
Sam



Windows Live: Make it eas=
ier for your friends to see /windows/windowslive/see-it-in-action/social-network-basics. aspx?ocid=3DPID=
23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009' target=3D'_new'>what you=92re =
up to on Facebook.

=

--_b8f85cb0-fb41-4d4b-a59f-5fccea1c1d8d_--

Re: Appending or replacing html/text output

am 14.01.2010 01:08:43 von Eric Covener

2010/1/13 Sam Minning :
> this leaves one problem at hand: mod_substitute just
> replaces content, it is unable to append it when there is
> no closing body-tag detected.

mod_sed or mod_ext_filter are other options.
--
Eric Covener
covener@gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Apache vs LiteSpeed

am 15.01.2010 06:26:42 von Scott Gifford

--0015175d0640de56f8047d2d40bc
Content-Type: text/plain; charset=ISO-8859-1

On Wed, Jan 13, 2010 at 2:08 AM, Jarrod Slick wrote:

>
> On Jan 13, 2010, at 12:47 AM, Scott Gifford wrote:
>
> On Wed, Jan 13, 2010 at 1:31 AM, Jarrod Slick wrote:
>
>> Apache Users,
>>
>> As some of you may or may not know a fairly prominent commercial
>> webserver, LiteSpeed, claims to outperform even a well configured Apache
>> 2.2.x installation by orders of magnitude. They have some internal
>> benchmarks that appear to back this up, but, being a natural skeptic, I
>> wanted to test it out for myself. So I've agreed to pit Apache and
>> LiteSpeed (as well as a few other webservers) against one another in
>> benchmarking tests on a 2x Xeon 5520 machine. I, and hopefully others, will
>> be configuring Apache. LiteSpeed will be configuring their product.
>>
>
> What is the workload you are benchmarking? Static pages, PHP/mod_perl
> code, CGI, etc.? Is the client a benchmark tool or a browser, and where on
> the network is it relative to the server? How are you measuring performance
> (page load times, requests/second, etc.)?
>
> -----Scott.
>
>
> Scott,
>
> I'm open to suggestions on all fronts, but as it stands we were going to do
> the following with the ab tool:
>
> -small static pages test
> -large static pages test
> -hello world php test
>
> And we were going to also benchmark a wordpress/joomla site in a more
> "real-world" load simulation test using the tool "siege".
>

For smaller static content that will be fetched multiple times without
changing, consider mod_mem_cache, which will avoid most disk I/O for that
content. For larger content or content that will just be fetched once or
change frequently, consider enabling sendfile or mmap for sending it. For
PHP, use a PHP accelerator, such as eAccelerator, APC, or Zend. For larger
applications, do your best to configure the different components
appropriately, for example with Drupal configure the static Javascript and
CSS files to be cached with mod_mem_cache, use the PHP accelerator for the
code, and if you have any large files make sure you have sendfile or mmap
available. If the benchmark client will do any caching, make sure
expiration is configured to allow a long cache time. Disable .htaccess
unless you need it, so Apache doesn't have to look for it.

Do a dry run while running top and iostat to see where your bottleneck is.
Try running Apache under strace to see what it's doing at each request, and
get it doing as little as possible. If it is serving a file from the memory
cache or with a static mmap, strace should show it making practically no
system calls.

If you google around for Apache benchmark tuning I'm sure you'll find some
other ideas and examples.

Good luck!

----Scott.

--0015175d0640de56f8047d2d40bc
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On Wed, Jan 13, 2010 at 2:08 AM, Jarrod Slick < href=3D"mailto:jarrod@e-sensibility.com" target=3D"_blank">jarrod@e-sensib=
ility.com>
wrote:
<=
blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px=
#ccc solid;padding-left:1ex">



On J=
an 13, 2010, at 12:47 AM, Scott Gifford wrote:

"cite">
On Wed, Jan 13, 2010 at 1:31 AM, Jar=
rod Slick < target=3D"_blank">jarrod@e-sensibility.com> wrote:



x #ccc solid;padding-left:1ex"> Apache Users,

As some of you may o=
r may not know a fairly prominent commercial webserver, LiteSpeed, claims t=
o outperform even a well configured Apache 2.2.x installation by orders of =
magnitude. =A0They have some internal benchmarks that appear to back this u=
p, but, being a natural skeptic, I wanted to test it out for myself. =A0So =
I've agreed to pit Apache and LiteSpeed (as well as a few other webserv=
ers) against one another in benchmarking tests on a 2x Xeon 5520 machine. =
=A0I, and hopefully others, will be configuring Apache. =A0LiteSpeed will b=
e configuring their product.




What is the workload you are benchmarking=
? =A0Static pages, PHP/mod_perl code, CGI, etc.? =A0Is the client a benchma=
rk tool or a browser, and where on the network is it relative to the server=
? =A0How are you measuring performance (page load times, requests/second, e=
tc.)?




-----Scott.

te>

Scott,=A0

I'm op=
en to suggestions on all fronts, but as it stands we were going to do the f=
ollowing with the ab tool:




-small static pages test
-large static pages =
test
-hello world php test

And we were g=
oing to also benchmark a wordpress/joomla site in a more "real-world&q=
uot; load simulation test using the tool "siege".



For smaller static content that=
will be fetched multiple times without changing, consider mod_mem_cache, w=
hich will avoid most disk I/O for that content. =A0For larger content or co=
ntent that will just be fetched once or change frequently, consider enablin=
g sendfile or mmap for sending it. =A0For PHP, use a PHP=A0accelerator, suc=
h as=A0eAccelerator, APC, or Ze=
nd. =A0For larger applications, do your best to configure the different com=
ponents appropriately, for example with Drupal configure the static Javascr=
ipt and CSS files to be cached with mod_mem_cache, use the PHP accelerator =
for the code, and if you have any large files make sure you have sendfile o=
r mmap available. =A0If the benchmark client will do any caching, make sure=
expiration is configured to allow a long cache time. =A0Disable .htaccess =
unless you need it, so Apache doesn't have to look for it.


=A0
Do a dry run while running top and iostat to see where your bottlene=
ck is. =A0Try running Apache under strace to see what it's doing at eac=
h request, and get it doing as little as possible. =A0If it is serving a fi=
le from the memory cache or with a static mmap, strace should show it makin=
g practically no system calls.



If you google around for Apache benchmark tuning I'm sur=
e you'll find some other ideas and examples.

G=
ood luck!

----Scott.





--0015175d0640de56f8047d2d40bc--

Re: Apache vs LiteSpeed

am 15.01.2010 07:57:11 von Arnab Ganguly

--001485eb00a449f30c047d2e83bd
Content-Type: text/plain; charset=ISO-8859-1

Basic query, is LiteSpeed an open source ? Can we write our own plugins
equivalent to Apache modules which will talk to LiteSpeed ?
Thanks in advance.
-A

On Fri, Jan 15, 2010 at 10:56 AM, Scott Gifford
wrote:

> On Wed, Jan 13, 2010 at 2:08 AM, Jarrod Slick wrote:
>
>>
>> On Jan 13, 2010, at 12:47 AM, Scott Gifford wrote:
>>
>> On Wed, Jan 13, 2010 at 1:31 AM, Jarrod Slick wrote:
>>
>>> Apache Users,
>>>
>>> As some of you may or may not know a fairly prominent commercial
>>> webserver, LiteSpeed, claims to outperform even a well configured Apache
>>> 2.2.x installation by orders of magnitude. They have some internal
>>> benchmarks that appear to back this up, but, being a natural skeptic, I
>>> wanted to test it out for myself. So I've agreed to pit Apache and
>>> LiteSpeed (as well as a few other webservers) against one another in
>>> benchmarking tests on a 2x Xeon 5520 machine. I, and hopefully others, will
>>> be configuring Apache. LiteSpeed will be configuring their product.
>>>
>>
>> What is the workload you are benchmarking? Static pages, PHP/mod_perl
>> code, CGI, etc.? Is the client a benchmark tool or a browser, and where on
>> the network is it relative to the server? How are you measuring performance
>> (page load times, requests/second, etc.)?
>>
>> -----Scott.
>>
>>
>> Scott,
>>
>> I'm open to suggestions on all fronts, but as it stands we were going to
>> do the following with the ab tool:
>>
>> -small static pages test
>> -large static pages test
>> -hello world php test
>>
>> And we were going to also benchmark a wordpress/joomla site in a more
>> "real-world" load simulation test using the tool "siege".
>>
>
> For smaller static content that will be fetched multiple times without
> changing, consider mod_mem_cache, which will avoid most disk I/O for that
> content. For larger content or content that will just be fetched once or
> change frequently, consider enabling sendfile or mmap for sending it. For
> PHP, use a PHP accelerator, such as eAccelerator, APC, or Zend. For
> larger applications, do your best to configure the different components
> appropriately, for example with Drupal configure the static Javascript and
> CSS files to be cached with mod_mem_cache, use the PHP accelerator for the
> code, and if you have any large files make sure you have sendfile or mmap
> available. If the benchmark client will do any caching, make sure
> expiration is configured to allow a long cache time. Disable .htaccess
> unless you need it, so Apache doesn't have to look for it.
>
> Do a dry run while running top and iostat to see where your bottleneck is.
> Try running Apache under strace to see what it's doing at each request, and
> get it doing as little as possible. If it is serving a file from the memory
> cache or with a static mmap, strace should show it making practically no
> system calls.
>
> If you google around for Apache benchmark tuning I'm sure you'll find some
> other ideas and examples.
>
> Good luck!
>
> ----Scott.
>
>

--001485eb00a449f30c047d2e83bd
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Basic query, is LiteSpeed an open source ? Can we write our own plugins equ=
ivalent to Apache modules which will talk to LiteSpeed ?
Thanks in advan=
ce.
-A

On Fri, Jan 15, 2010 at 10:56 A=
M, Scott Gifford < ass.com">sgifford@suspectclass.com> wrote:

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, Jan =
13, 2010 at 2:08 AM, Jarrod Slick < arrod@e-sensibility.com" target=3D"_blank">jarrod@e-sensibility.com>=
wrote:

e=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; =
padding-left: 1ex;">



On Jan 13, 2010, at 12:4=
7 AM, Scott Gifford wrote:

ss=3D"gmail_quote">On Wed, Jan 13, 2010 at 1:31 AM, Jarrod Slick =3D"ltr"><=
jarrod@e-sensibility.com
>
wrote:




204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Apache Users, >
As some of you may or may not know a fairly prominent commercial web=
server, LiteSpeed, claims to outperform even a well configured Apache 2.2.x=
installation by orders of magnitude. =A0They have some internal benchmarks=
that appear to back this up, but, being a natural skeptic, I wanted to tes=
t it out for myself. =A0So I've agreed to pit Apache and LiteSpeed (as =
well as a few other webservers) against one another in benchmarking tests o=
n a 2x Xeon 5520 machine. =A0I, and hopefully others, will be configuring A=
pache. =A0LiteSpeed will be configuring their product.





What is the workload you are benchmarking=
? =A0Static pages, PHP/mod_perl code, CGI, etc.? =A0Is the client a benchma=
rk tool or a browser, and where on the network is it relative to the server=
? =A0How are you measuring performance (page load times, requests/second, e=
tc.)?





-----Scott.

te>

Scott,=A0

I'm op=
en to suggestions on all fronts, but as it stands we were going to do the f=
ollowing with the ab tool:





-small static pages test
-large static pages =
test
-hello world php test

And we were g=
oing to also benchmark a wordpress/joomla site in a more "real-world&q=
uot; load simulation test using the tool "siege".




For smaller static content that=
will be fetched multiple times without changing, consider mod_mem_cache, w=
hich will avoid most disk I/O for that content. =A0For larger content or co=
ntent that will just be fetched once or change frequently, consider enablin=
g sendfile or mmap for sending it. =A0For PHP, use a PHP=A0accelerator, suc=
h as=A0eAccelerator, APC, or Ze=
nd. =A0For larger applications, do your best to configure the different com=
ponents appropriately, for example with Drupal configure the static Javascr=
ipt and CSS files to be cached with mod_mem_cache, use the PHP accelerator =
for the code, and if you have any large files make sure you have sendfile o=
r mmap available. =A0If the benchmark client will do any caching, make sure=
expiration is configured to allow a long cache time. =A0Disable .htaccess =
unless you need it, so Apache doesn't have to look for it.



=A0
Do a dry run while running top and iostat to see where your bottlene=
ck is. =A0Try running Apache under strace to see what it's doing at eac=
h request, and get it doing as little as possible. =A0If it is serving a fi=
le from the memory cache or with a static mmap, strace should show it makin=
g practically no system calls.




If you google around for Apache benchmark tuning I'm sur=
e you'll find some other ideas and examples.

G=
ood luck!

----Scott.








--001485eb00a449f30c047d2e83bd--

Re: Apache vs LiteSpeed

am 15.01.2010 08:00:16 von Jarrod Slick

--Apple-Mail-1--383708124
Content-Type: text/plain;
charset=US-ASCII;
format=flowed;
delsp=yes
Content-Transfer-Encoding: 7bit


> On Fri, Jan 15, 2010 at 10:56 AM, Scott Gifford > > wrote:
> On Wed, Jan 13, 2010 at 2:08 AM, Jarrod Slick > > wrote:
>
> On Jan 13, 2010, at 12:47 AM, Scott Gifford wrote:
>
>> On Wed, Jan 13, 2010 at 1:31 AM, Jarrod Slick >> > wrote:
>> Apache Users,
>>
>> As some of you may or may not know a fairly prominent commercial
>> webserver, LiteSpeed, claims to outperform even a well configured
>> Apache 2.2.x installation by orders of magnitude. They have some
>> internal benchmarks that appear to back this up, but, being a
>> natural skeptic, I wanted to test it out for myself. So I've
>> agreed to pit Apache and LiteSpeed (as well as a few other
>> webservers) against one another in benchmarking tests on a 2x Xeon
>> 5520 machine. I, and hopefully others, will be configuring
>> Apache. LiteSpeed will be configuring their product.
>>
>> What is the workload you are benchmarking? Static pages, PHP/
>> mod_perl code, CGI, etc.? Is the client a benchmark tool or a
>> browser, and where on the network is it relative to the server?
>> How are you measuring performance (page load times, requests/
>> second, etc.)?
>>
>> -----Scott.
>>
>
> Scott,
>
> I'm open to suggestions on all fronts, but as it stands we were
> going to do the following with the ab tool:
>
> -small static pages test
> -large static pages test
> -hello world php test
>
> And we were going to also benchmark a wordpress/joomla site in a
> more "real-world" load simulation test using the tool "siege".
>
> For smaller static content that will be fetched multiple times
> without changing, consider mod_mem_cache, which will avoid most disk
> I/O for that content. For larger content or content that will just
> be fetched once or change frequently, consider enabling sendfile or
> mmap for sending it. For PHP, use a PHP accelerator, such as
> eAccelerator, APC, or Zend. For larger applications, do your best
> to configure the different components appropriately, for example
> with Drupal configure the static Javascript and CSS files to be
> cached with mod_mem_cache, use the PHP accelerator for the code, and
> if you have any large files make sure you have sendfile or mmap
> available. If the benchmark client will do any caching, make sure
> expiration is configured to allow a long cache time.
> Disable .htaccess unless you need it, so Apache doesn't have to look
> for it.
>
> Do a dry run while running top and iostat to see where your
> bottleneck is. Try running Apache under strace to see what it's
> doing at each request, and get it doing as little as possible. If
> it is serving a file from the memory cache or with a static mmap,
> strace should show it making practically no system calls.
>
> If you google around for Apache benchmark tuning I'm sure you'll
> find some other ideas and examples.
>
> Good luck!
>
> ----Scott.
>
>

On Jan 15, 2010, at 12:57 AM, Arnab Ganguly wrote:

> Basic query, is LiteSpeed an open source ? Can we write our own
> plugins equivalent to Apache modules which will talk to LiteSpeed ?
> Thanks in advance.
> -A

Arnab,

I'm not the type to flame, but others surely will -- so don't top post.

As for the extensibility of litespeed, there very well may be ways to
build modules for it. It's not open source, though.
--Apple-Mail-1--383708124
Content-Type: text/html;
charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

-webkit-line-break: after-white-space; ">


type=3D"cite">
On Fri, Jan 15, 2010 at 10:56 =
AM, Scott Gifford < href=3D"mailto:sgifford@suspectclass.com">sgifford@suspectcl ass.com>=
;
wrote:
style=3D"border-left-width: 1px; border-left-style: solid; =
border-left-color: rgb(204, 204, 204); margin-top: 0pt; margin-right: =
0pt; margin-bottom: 0pt; margin-left: 0.8ex; padding-left: 1ex; =
position: static; z-index: auto; "> =
style=3D"border-left-width: 1px; border-left-style: solid; =
border-left-color: rgb(204, 204, 204); margin-top: 0pt; margin-right: =
0pt; margin-bottom: 0pt; margin-left: 0.8ex; padding-left: 1ex; =
position: static; z-index: auto; ">
style=3D"">

On Jan 13, 2010, at 12:47 =
AM, Scott Gifford wrote:

class=3D"gmail_quote">On Wed, Jan 13, 2010 at 1:31 AM, Jarrod Slick =
< target=3D"_blank">jarrod@e-sensibility.com> wrote:
=
border-left-style: solid; border-left-color: rgb(204, 204, 204); =
margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: =
0.8ex; padding-left: 1ex; position: static; z-index: auto; "> Apache =
Users,

As some of you may or may not know a fairly prominent =
commercial webserver, LiteSpeed, claims to outperform even a well =
configured Apache 2.2.x installation by orders of magnitude.  They =
have some internal benchmarks that appear to back this up, but, being a =
natural skeptic, I wanted to test it out for myself.  So I've =
agreed to pit Apache and LiteSpeed (as well as a few other webservers) =
against one another in benchmarking tests on a 2x Xeon 5520 machine. =
 I, and hopefully others, will be configuring Apache. =
 LiteSpeed will be configuring their product.
=

What is the workload you are =
benchmarking?  Static pages, PHP/mod_perl code, CGI, etc.?  Is =
the client a benchmark tool or a browser, and where on the network is it =
relative to the server?  How are you measuring performance (page =
load times, requests/second, etc.)?
=

-----Scott.

te>

Scott, 

I'm =
open to suggestions on all fronts, but as it stands we were going to do =
the following with the ab tool:

-small static =
pages test
-large static pages test
-hello world php =
test

And we were going to also benchmark a =
wordpress/joomla site in a more "real-world" load simulation test using =
the tool "siege".

For =
smaller static content that will be fetched multiple times without =
changing, consider mod_mem_cache, which will avoid most disk I/O for =
that content.  For larger content or content that will just be =
fetched once or change frequently, consider enabling sendfile or mmap =
for sending it.  For PHP, use a PHP accelerator, such =
as eAccelerator, APC, =
or Zend.  For larger applications, do your best to configure the =
different components appropriately, for example with Drupal configure =
the static Javascript and CSS files to be cached with mod_mem_cache, use =
the PHP accelerator for the code, and if you have any large files make =
sure you have sendfile or mmap available.  If the benchmark client =
will do any caching, make sure expiration is configured to allow a long =
cache time.  Disable .htaccess unless you need it, so Apache =
doesn't have to look for it.
 
Do a dry run while =
running top and iostat to see where your bottleneck is.  Try =
running Apache under strace to see what it's doing at each request, and =
get it doing as little as possible.  If it is serving a file from =
the memory cache or with a static mmap, strace should show it making =
practically no system calls.

If you google around =
for Apache benchmark tuning I'm sure you'll find some other ideas and =
examples.

Good =
luck!

----Scott.
lockquote>
class=3D"gmail_quote">
style=3D"border-left-width: 1px; border-left-style: solid; =
border-left-color: rgb(204, 204, 204); margin-top: 0pt; margin-right: =
0pt; margin-bottom: 0pt; margin-left: 0.8ex; padding-left: 1ex; =
position: static; z-index: auto; ">
class=3D"gmail_quote">

=


On Jan 15, 2010, =
at 12:57 AM, Arnab Ganguly wrote:

class=3D"Apple-interchange-newline">
Basic =
query, is LiteSpeed an open source ? Can we write our own plugins =
equivalent to Apache modules which will talk to LiteSpeed ?
Thanks in =
advance.
-A

Arnab,

<=
div>I'm not the type to flame, but others surely will -- so don't top =
post.

As for the extensibility of litespeed, =
there very well may be ways to build modules for it.  It's not open =
source, though.
=

--Apple-Mail-1--383708124--

Re: Apache vs LiteSpeed

am 15.01.2010 17:25:39 von mcguire

Jarrod Slick wrote:
>
> All tests will be performed on localhost.

I did not want to comment since I am not an Apache nor LiteSpeed performance expert,
but I rather suspect that will invalidate any results you get. At least it will make it
much harder to get any kind of consistent results.


--
Tommy M. McGuire
mcguire@crsr.net

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Apache vs LiteSpeed

am 15.01.2010 17:29:46 von Jarrod Slick

On Jan 15, 2010, at 10:25 AM, Tommy M. McGuire wrote:

> Jarrod Slick wrote:
>>
>> All tests will be performed on localhost.
>
> I did not want to comment since I am not an Apache nor LiteSpeed
> performance expert,
> but I rather suspect that will invalidate any results you get. At
> least it will make it
> much harder to get any kind of consistent results.
>
>
> --
> Tommy M. McGuire
> mcguire@crsr.net
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

I'm curious -- why do you think that the results will be
inconsistent? If anything I would be inclined to think that using
localhost would improve consistency as extraneous variables like
network congestion at the time of testing would not be present.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Apache vs LiteSpeed

am 15.01.2010 17:44:33 von LuKreme

On 15-Jan-2010, at 09:29, Jarrod Slick wrote:
> I'm curious -- why do you think that the results will be inconsistent? =
If anything I would be inclined to think that using localhost would =
improve consistency as extraneous variables like network congestion at =
the time of testing would not be present.


Are all your webpages going to be served only to localhost users? If =
not, then the test is completely invalid and only serves to show how the =
servers respond in a very narrow and very specific and largely useless =
setup that does not reflect the real world use in any meaningful way.

Sure, it's nice to think that 'eliminating network congestion' will make =
the servers serve 'faster', but faster in an artificial setup does not =
imply actual speed in a real world installation.

Run thousands of test across multiple connections from multiple sources =
for each server if you want to see what the performance is ACTUALLY =
like.

--=20
'They think they want good government and justice for all, Vimes, yet =
what is it they really crave, deep in their hearts? Only that things go =
on as normal and tomorrow is pretty much like today.' --Feet of Clay


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Apache vs LiteSpeed

am 15.01.2010 17:45:29 von Tom Evans

On Fri, Jan 15, 2010 at 4:29 PM, Jarrod Slick wr=
ote:
> I'm curious -- why do you think that the results will be inconsistent? =
 If
> anything I would be inclined to think that using localhost would improve
> consistency as extraneous variables like network congestion at the time o=
f
> testing would not be present.
>

There is no way you can fully load a webserver using a single instance
of a testing tool running on the same box. For starters, the testing
tool will end up consuming more CPU than the webserver, invalidating
your test results.

For a followup point, I would think that you would need multiple
instances of the testing tool, running on multiple boxes, to fully
load a server.

Certainly, you would need multiple instances of ab (which is what
LiteSpeed used to do their tests), as ab is not particularly good. A
better tool is Apache flood, or siege, either of which will stress the
server much harder than ab.

Network congestion/latencies could also affect the test result, which
is why you would run these tests multiple times, using a dedicated
switch (ie not connected to anything else).

Cheers

Tom

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Apache vs LiteSpeed

am 15.01.2010 18:00:03 von Jarrod Slick

On Jan 15, 2010, at 10:45 AM, Tom Evans wrote:

> On Fri, Jan 15, 2010 at 4:29 PM, Jarrod Slick > > wrote:
>> I'm curious -- why do you think that the results will be
>> inconsistent? If
>> anything I would be inclined to think that using localhost would
>> improve
>> consistency as extraneous variables like network congestion at the
>> time of
>> testing would not be present.
>>
>
> There is no way you can fully load a webserver using a single instance
> of a testing tool running on the same box. For starters, the testing
> tool will end up consuming more CPU than the webserver, invalidating
> your test results.
>
> For a followup point, I would think that you would need multiple
> instances of the testing tool, running on multiple boxes, to fully
> load a server.
>
> Certainly, you would need multiple instances of ab (which is what
> LiteSpeed used to do their tests), as ab is not particularly good. A
> better tool is Apache flood, or siege, either of which will stress the
> server much harder than ab.
>
> Network congestion/latencies could also affect the test result, which
> is why you would run these tests multiple times, using a dedicated
> switch (ie not connected to anything else).
>
> Cheers
>
> Tom
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

What about having a private VLAN between a testing machine and the
apache machine. I suppose that would solve the resource separation
problem between the benchmarking tool and the web server. Can you
think of any problems with this type of setup?

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Apache vs LiteSpeed

am 15.01.2010 18:03:37 von Eric Covener

On Fri, Jan 15, 2010 at 12:00 PM, Jarrod Slick w=
rote:

> What about having a private VLAN between a testing machine and the apache
> machine. =A0I suppose that would solve the resource separation problem be=
tween
> the benchmarking tool and the web server. =A0Can you think of any problem=
s
> with this type of setup?

It doesn't model the traffic real clients would generate very well,
unless you expect them to be on the same vlan too.

--=20
Eric Covener
covener@gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Re: Apache vs LiteSpeed

am 15.01.2010 18:03:57 von Jarrod Slick

On Jan 15, 2010, at 10:44 AM, LuKreme wrote:
> Run thousands of test across multiple connections from multiple
> sources for each server if you want to see what the performance is
> ACTUALLY like.
>
Unfortunately multiple sources is impractical for me unless you want
to donate some hardware. That said, I think I can muster an
additional 2x Quad machine to be the client on which the benchmarking
tool resides.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Apache vs LiteSpeed

am 15.01.2010 18:08:31 von Jarrod Slick

On Jan 15, 2010, at 11:03 AM, Eric Covener wrote:

> On Fri, Jan 15, 2010 at 12:00 PM, Jarrod Slick > > wrote:
>
>> What about having a private VLAN between a testing machine and the
>> apache
>> machine. I suppose that would solve the resource separation
>> problem between
>> the benchmarking tool and the web server. Can you think of any
>> problems
>> with this type of setup?
>
> It doesn't model the traffic real clients would generate very well,
> unless you expect them to be on the same vlan too.

Yes, but the mission is just to see which webserver is "better" in
terms of performance. So, I should be more specific with my
question: to the end of determining strictly which webserver is more
efficient do you see any problems with this type of setup?

And another question: how would you do it differently? Sure, in an
ideal world I could assemble my own botnet and then blast my corporate
network with a gigabit of distributed traffic multiple times for each
webserver -- but obviously in the real world that's not going to happen.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Apache vs LiteSpeed

am 15.01.2010 18:31:30 von LuKreme

On 15-Jan-2010, at 10:08, Jarrod Slick wrote:
> On Jan 15, 2010, at 11:03 AM, Eric Covener wrote:
>> On Fri, Jan 15, 2010 at 12:00 PM, Jarrod Slick =
wrote:
>>=20
>>> What about having a private VLAN between a testing machine and the =
apache
>>> machine. I suppose that would solve the resource separation problem =
between
>>> the benchmarking tool and the web server. Can you think of any =
problems
>>> with this type of setup?
>>=20
>> It doesn't model the traffic real clients would generate very well,
>> unless you expect them to be on the same vlan too.
>=20
> Yes, but the mission is just to see which webserver is "better" in =
terms of performance.

"better" in terms of what KIDN of performance? Serving web pages to real =
users or serving a completely artificial set of non-real world users =
with a completely artificial set of non-real world pages?

If this is simply an epeen contest then it's pretty worthless and no one =
is lily to be very interested.
=20
> So, I should be more specific with my question: to the end of =
determining strictly which webserver is more efficient do you see any =
problems with this type of setup?

More 'efficient' I think you mean.=20

> And another question: how would you do it differently? Sure, in an =
ideal world I could assemble my own botnet and then blast my corporate =
network with a gigabit of distributed traffic multiple times for each =
webserver -- but obviously in the real world that's not going to happen.

The question you have to ask yourself is what are you wanting to test? A =
completely artificial metric with no real-world correlation? If so, then =
you're on the right track.

--=20
I love as only I can, with all my heart


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

RE: Re: Apache vs LiteSpeed

am 15.01.2010 18:33:23 von Oliver Schoenborn

> From: LuKreme [mailto:kremels@kreme.com]
> Sent: January 15, 2010 11:45 AM
>=20
> On 15-Jan-2010, at 09:29, Jarrod Slick wrote:
> > I'm curious -- why do you think that the results will be
> inconsistent? If anything I would be inclined to think that using
> localhost would improve consistency as extraneous variables like
> network congestion at the time of testing would not be present.
>=20
>=20
> Are all your webpages going to be served only to localhost users? If
> not, then the test is completely invalid and only serves to show how
> the servers respond in a very narrow and very specific and largely
> useless setup that does not reflect the real world use in any
> meaningful way.
>=20
> Sure, it's nice to think that 'eliminating network congestion' will
> make the servers serve 'faster', but faster in an artificial setup does
> not imply actual speed in a real world installation.

I don't agree. The OP wants to compare the speed of two applications. The n=
etwork congestion (for instance) is extraneous to those applications. Ie ho=
w fast they can accept, process and respond to a request has nothing to do =
with congestion -- congestion affects how fast the network can transport th=
e response to the user. If you run the two apps simultaneously over long en=
ough period of time, then the impact "congestion", available bandwidth, and=
other extraneous factors will be the same for both apps and hence will app=
ear as a common denominator that can be thrown out.=20

I think that for the OP's purpose it is perfectly valid and sensible to use=
localhost, assuming the host isn't in use by other users/server apps (but =
again this would just lead to a common offset for the timings). Why complic=
ate your testing? throw it out from the start.

Oliver


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Re: Apache vs LiteSpeed

am 15.01.2010 18:34:46 von Jarrod Slick

>
>
>> So, I should be more specific with my question: to the end of
>> determining strictly which webserver is more efficient do you see
>> any problems with this type of setup?
>
> More 'efficient' I think you mean.

Is that not exactly what I said?

>
>> And another question: how would you do it differently? Sure, in an
>> ideal world I could assemble my own botnet and then blast my
>> corporate network with a gigabit of distributed traffic multiple
>> times for each webserver -- but obviously in the real world that's
>> not going to happen.
>
> The question you have to ask yourself is what are you wanting to
> test? A completely artificial metric with no real-world correlation?
> If so, then you're on the right track.

Instead of dancing around the issue can you please provide some
suggestions? Or do you just like to be contrary?

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Apache vs LiteSpeed

am 15.01.2010 20:38:58 von Scott Gifford

--0015174bec34cfe411047d3928d9
Content-Type: text/plain; charset=ISO-8859-1

On Fri, Jan 15, 2010 at 12:08 PM, Jarrod Slick wrote:
[ ... ]

> And another question: how would you do it differently? Sure, in an ideal
> world I could assemble my own botnet and then blast my corporate network
> with a gigabit of distributed traffic multiple times for each webserver --
> but obviously in the real world that's not going to happen.


IMO it's not necessary to simulate different connections from all over the
world, but it is true that the benchmark client will consume a substantial
amount of resources, which will affect your result. Both should be skewed
about the same, so it should be a fair comparison, but things like
"requests/sec" will not be meaningful.

Using the live Internet may cause your network connection to be the
bottleneck, too, which could give bad results.

I think using a LAN/VLAN connection would be a fair measure. You could also
consider running the tests as instances on Amazon EC2, which will let you
lease a small pool of servers for a few hours for $20 or so.

---Scott.

--0015174bec34cfe411047d3928d9
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On Fri, Jan 15, 2010 at 12:08 PM, Jarrod Slick < f=3D"mailto:jarrod@e-sensibility.com">jarrod@e-sensibility.c om> n> wrote:

[ ... ]=A0
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex;">


And another question: how would you do it differently? =A0Sure, in an ideal=
world I could assemble my own botnet and then blast my corporate network w=
ith a gigabit of distributed traffic multiple times for each webserver -- b=
ut obviously in the real world that's not going to happen.



IMO it's not necessary to simulate different connec=
tions from all over the world, but it is true that the benchmark client wil=
l consume a substantial amount of resources, which will affect your result.=
=A0Both should be skewed about the same, so it should be a fair comparison=
, but things like "requests/sec" will not be meaningful.



Using the live Internet may cause your network connecti=
on to be the bottleneck, too, which could give bad results.

<=
/div>
I think using a LAN/VLAN connection would be a fair measure. =A0Y=
ou could also consider running the tests as instances on Amazon EC2, which =
will let you lease a small pool of servers for a few hours for $20 or so. div>


---Scott.



--0015174bec34cfe411047d3928d9--

Re: Apache vs LiteSpeed

am 15.01.2010 21:31:25 von mcguire

Jarrod Slick wrote:
> On Jan 15, 2010, at 10:25 AM, Tommy M. McGuire wrote:
>
>> Jarrod Slick wrote:
>>>
>>> All tests will be performed on localhost.
>>
>> I did not want to comment since I am not an Apache nor LiteSpeed
>> performance expert,
>> but I rather suspect that will invalidate any results you get. At
>> least it will make it
>> much harder to get any kind of consistent results.
>
> I'm curious -- why do you think that the results will be inconsistent?
> If anything I would be inclined to think that using localhost would
> improve consistency as extraneous variables like network congestion at
> the time of testing would not be present.

Check Tom Evans' reply, but the basic problem would be that the test tool
would be consuming the same resources that the web server needs to use.
Ideally, you would want the server on a quiescent machine, connected to a
dedicated, otherwise quiescent network, in turn connected to the testing host
or hosts.

I wouldn't worry too much about "modeling the traffic real clients would
generate", and as long as the network has enough free bandwidth to saturate
the servers, it should be fine. But what you want to avoid is directly
perturbing the webserver processes.

--
Tommy M. McGuire
mcguire@crsr.net

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Apache vs LiteSpeed

am 16.01.2010 01:42:26 von LuKreme

On 15-Jan-2010, at 10:34, Jarrod Slick wrote:
>>> So, I should be more specific with my question: to the end of =
determining strictly which webserver is more efficient do you see any =
problems with this type of setup?
>>=20
>> More 'efficient' I think you mean.
>=20
> Is that not exactly what I said?

My quotes were meant to indicate that the 'efficient' you are testing =
really has nothing to do with actual efficiency.

>>> And another question: how would you do it differently? Sure, in an =
ideal world I could assemble my own botnet and then blast my corporate =
network with a gigabit of distributed traffic multiple times for each =
webserver -- but obviously in the real world that's not going to happen.
>>=20
>> The question you have to ask yourself is what are you wanting to =
test? A completely artificial metric with no real-world correlation? If =
so, then you're on the right track.
>=20
> Instead of dancing around the issue can you please provide some =
suggestions?

I did provide suggestions, you said they weren't possible.


> Or do you just like to be contrary?

That too.


--=20
Well, if crime fighters fight crime and fire fighters fight fire,=20
what do freedom fighters fight? They never mention that part to=20=

us, do they?=20


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Apache vs LiteSpeed

am 16.01.2010 01:44:01 von LuKreme

On 15-Jan-2010, at 12:38, Scott Gifford wrote:
> I think using a LAN/VLAN connection would be a fair measure. You =
could also
> consider running the tests as instances on Amazon EC2, which will let =
you
> lease a small pool of servers for a few hours for $20 or so.


That's a good idea. I'd forgotten about EC2.

--=20
Im finding's you'r mis'use of apostrophe's disturbing.


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org